<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!-- 公共头部部分 -->
<jsp:include page="_header.jsp"></jsp:include>
<!-- end -->
<title>课程列表</title>
</head>
<body>
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 课程管理 <span class="c-gray en">&gt;</span> 课程列表 <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a></nav>
<div class="page-container">
	<div class="text-c">
		<form action="${pageContext.request.contextPath }/educCourse/index" method="post">
			<input type="text" name="cxName" value="${cxName }" id="" placeholder=" 课程名称" style="width:250px" class="input-text">
			<button name="" id="" class="btn btn-success" type="submit"><i class="Hui-iconfont">&#xe665;</i> 搜课程</button>
		</form>
	</div>
	<div class="cl pd-5 bg-1 bk-gray mt-20"> 
		<span class="l">
			<a href="javascript:;" onclick="datadel_list('educCourse')" class="btn btn-danger radius">
				<i class="Hui-iconfont">&#xe6e2;</i> 批量删除
			</a> 
			<a class="btn btn-primary radius" data-title="添加课程" onClick="article_edit('添加课程','${pageContext.request.contextPath }/educCourse/updateIndex?pageText=1&id=${c.course_id }',${c.course_id })" href="javascript:;">
				<i class="Hui-iconfont">&#xe600;</i> 添加课程
			</a>
		</span> 
		<span class="r">共有数据：<strong>${page.totalCount }</strong> 条</span> 
		</div>
	<div class="mt-20">
		<table class="table table-border table-bordered table-bg table-hover table-sort table-responsive">
			<thead>
				<tr class="text-c">
					<th width="25"><input type="checkbox" name="" value=""></th>
					<th width="80">ID</th>
					<th>课程名称</th>
					<th width="100">课程编号</th>
					<th width="100">所属年级</th>
					<th width="100">章节名称</th>
					<th width="100">章节时间</th>
					<!-- <th width="80">来源</th>
					<th width="120">更新时间</th>
					<th width="75">浏览次数</th>
					<th width="60">发布状态</th> -->
					<th width="120">操作</th>
				</tr>
			</thead>
			<tbody>
				<c:forEach var="c" items="${list}">
					<tr class="text-c">
					<td><input type="checkbox" value="${c.course_id }" name="message"></td>
					<td>${c.course_id }</td>
					<td>${c.course_name }</td>
					<td>${c.course_ref_id }</td>
					<td>${c.course_grade_id }</td>
					<td>${c.chapter_name }</td>
					<td>${c.chapter_classHour }</td>
					<td class="f-14 td-manage">
						<!-- <a style="text-decoration:none" onClick="article_shenhe(this,'10001')" href="javascript:;" title="审核">审核</a> -->
						<a style="text-decoration:none" class="ml-5" onClick="article_edit('课程编辑','${pageContext.request.contextPath }/educCourse/updateIndex?pageText=2&id=${c.course_id }',${c.course_id })" href="javascript:;" title="编辑">
							<i class="Hui-iconfont">&#xe6df;</i>
						</a> 
						<a style="text-decoration:none" class="ml-5" onClick="article_del(this,${c.course_id },'educCourse')" href="javascript:;" title="删除">
							<i class="Hui-iconfont">&#xe6e2;</i>
						</a>
					</td>
				</tr>
				</c:forEach>
			</tbody>
		</table>
		<nav class="breadcrumb" style="background: #fff;">
			当前页数:${page.currentPageNo } 共 ${page.totalPageCount } 页
			<c:if test="${page.currentPageNo < page.totalPageCount }">
				<a class="btn radius r" style="line-height: 1.6em; margin-top: 3px"
					href="${pageContext.request.contextPath }/educCourse/index?cxName=${cxName }&currentPageNo=${page.totalPageCount }">尾页</a>
				<a class="btn radius r" style="line-height: 1.6em; margin-top: 3px"
					href="${pageContext.request.contextPath }/educCourse/index?cxName=${cxName }&currentPageNo=${page.currentPageNo+1 }">下一页</a>
			</c:if>
			<c:if test="${page.currentPageNo > 1}">
				<a class="btn radius r" style="line-height: 1.6em; margin-top: 3px"
					href="${pageContext.request.contextPath }/educCourse/index?cxName=${cxName }&currentPageNo=${page.currentPageNo-1 }">上一页</a>
				<a class="btn radius r" style="line-height: 1.6em; margin-top: 3px"
					href="${pageContext.request.contextPath }/educCourse/index?cxName=${cxName }&currentPageNo=1">首页</a>
			</c:if>
		</nav>
	</div>
</div>
<!-- 公共页脚部分 -->
<jsp:include page="_footer.jsp"></jsp:include>
<!-- end -->